// 热更新
if (module.hot) {
	module.hot.accept();
}

import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import { RouterProvider } from 'react-router-dom';
import router from './router';

const rootElement = document.querySelector('#root') as HTMLElement;
console.log(router);

const root = ReactDOM.createRoot(rootElement);
root.render(<RouterProvider router={router} />);
